﻿using System;
using System.Web;
using System.Collections;
using System.Web.Services;
using System.Web.Services.Protocols;
using WebPaint;

/// <summary>
/// Descripción breve de WebService
/// </summary>
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
public class WebService : System.Web.Services.WebService {

    public WebService () {
        //Eliminar la marca de comentario de la línea siguiente si utiliza los componentes diseñados 
        //InitializeComponent(); 
    }

    [WebMethod]
    public PaintDotNetDataSet getErrors() {
        WebPaint.PaintDotNetDataSetTableAdapters.ErroresTableAdapter ErroresTA = new WebPaint.PaintDotNetDataSetTableAdapters.ErroresTableAdapter();
        PaintDotNetDataSet PDNETDS = new PaintDotNetDataSet();
        ErroresTA.Fill(PDNETDS.Errores);
        return PDNETDS;
    }
    
}

